package com.study.exception;

/**
 * @author LiOu
 * @date 2020/12/3 10:30
 */
public class ServiceException extends RuntimeException {

    private Integer code;

    public ServiceException() {
        this.code = 2001;
    }

    public ServiceException(String msg) {
        super(msg);
        this.code = 2001;
    }

    public ServiceException(String msg, Integer code) {
        super(msg);
        this.code = code;
    }

    public Integer getCode() {
        return this.code;
    }

}
